package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("审核报告的记录")
@Entity
@Table(name = "audit_report_report")
public class AuditReportRecorder extends BaseEntity {

    @ApiModelProperty("审核的报告")
    private AuditReport auditReport;

    @ApiModelProperty("审核报告人")
    private User user;

    @ApiModelProperty("审核记录")
    private String note;

    @ApiModelProperty("审核不通过或者通过")
    private boolean true_false;

    @ManyToOne
    @JoinColumn(name = "audir_report_id")
    public AuditReport getAuditReport() {
        return auditReport;
    }

    public void setAuditReport(AuditReport auditReport) {
        this.auditReport = auditReport;
    }


    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name = "note")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Column(name = "true_false")
    public boolean isTrue_false() {
        return true_false;
    }

    public void setTrue_false(boolean true_false) {
        this.true_false = true_false;
    }
}
